// 存token
function setToken (value, key = 'token') {
  window.localStorage.setItem(key, value)
}

// 获取token
function getToken (key = 'token') {
  return window.localStorage.getItem(key)
}

function removeToken (key = 'token') {
  window.localStorage.removeItem(key)
}

export { setToken, getToken, removeToken }
